/***********************************************************************//**
 *   \file FilterDFT.h		\author belot nicolas (karrakis)           *
 *   \brief define FilterDFT
     Apply a filter via a DFT		                                   
 ************************************************************************//*
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef FILTERDFT_H
#define FILTERDFT_H 1
#include "libtrckr.h"
#include "Filter.h"
#include "DFT.h"
#include "FFT.h"

namespace libtrckr {
class FilterDFT : public Filter, public DFT {
	/** \class libtrckr::FilterDFT
	\brief Apply a filter via a DFT
	*/
	public:
		/** Default Constructor
		*/
		FilterDFT();
		/** Create a new DFTFilter
		\param re real part  ofthe DFT
		\param im imaginary part of the DFT
		\param size size of the DFT
		*/
		FilterDFT(double*,double*,int);
		/** Create a new DFTFilter
		\param d a dft
		*/
		FilterDFT(const DFT&);
		/**Copy contructor
		\param f the filter
		*/
		FilterDFT(const FilterDFT&);
		~FilterDFT();		

		double* Preview(double*,int);//preview == execution  ?
		Buffer& Preview(Buffer&);//preview == execution  ?
		void Init( );
		void Tune(DynArray<int>);
		double* Execution(double *,int);
		Buffer& Execution(Buffer&);
		virtual string HowToTune();

	private :
		FFT fft;
			

};
}
#endif

